import Vue from 'vue'
import './config/env/env.js'
import App from './App'
import axios from "@/inspur/utils/axios";
import './inspur/utils/drag'
import VConsole from 'vconsole';
const vConsole = new VConsole({ theme: 'dark' });
Vue.config.productionTip = false

Vue.prototype.$apiEnv = window.config;
Vue.prototype.$axios = axios;

// 引入全局uView
import uView from "./uni_modules/uview-ui/index.js";
Vue.use(uView);

// 此处为演示vuex使用，非uView的功能部分
import store from "@/store";

// 引入uView对小程序分享的mixin封装
let mpShare = require("./uni_modules/uview-ui/libs/mixin/mpShare.js");
Vue.mixin(mpShare);

let envURL = window.location.protocol + "//" + window.location.host;
if(envURL !== 'http://pms.chinatowercom.cn:18088'){
  const vConsole = new VConsole({ theme: 'dark' });
}
App.mpType = 'app'

const app = new Vue({
  store,
  ...App
})
app.$mount()
